package io.github.talelin.latticy.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Getter
@Setter
public class SendFlowerDTO
{
    @NotNull
    @Positive
    private Long flowerId;
    @NotNull
    @Positive
    private int sendType;
    @NotBlank
    @Length(min = 1, max = 20)
    private String username;
    @NotBlank
    @Length(min = 1, max = 11)
    private String mobile;

    private String plannedDate;

    @NotBlank
    @Length(min = 1)
    private String description;
}
